{include file="header.html"}

<div id="rightTop">
    <p>宠物管理</p>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="pet" />
                <input type="hidden" name="act" value="index" />
                会员:<input class="queryInput" type="text" name="user_name" value="{$smarty.get.user_name}" />
               宠物名称:<input class="queryInput" type="text" name="name" value="{$smarty.get.name}" />
               性别: <select class="querySelect" name="sex">
                <option value="">{$lang.select_pls}</option>
                {html_options options=$list1 selected=$smarty.get.sex}
                </select>
            分类
       <select class="querySelect" name="cate_id">
                <option value="">{$lang.select_pls}</option>
                {html_options options=$list2 selected=$smarty.get.cate_id}
                </select>
               
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=pet">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">
        {include file=page.top.html}
    </div>
    <div class="clear:both;"></div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $pets}-->
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
            <td>会员</td>
            <td>宠物名称</td>
            <td style="text-align:center;">年龄</td>
            <td style="text-align:center;">性别</td>
            <td style="text-align:center;">类别</td>
            <td style="text-align:center;">添加时间</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$pets item=p}-->
        <tr class="tatr2">
            <td class="firstCell"><input type="checkbox" class="checkitem" value="{$p.pet_id}"/></td>
            <td>{$p.user_name|escape}{if $p.real_name} | {$p.real_name|escape}{/if}</td>
			<td>{$p.name|escape}</td>
			<td style="text-align:center;">{$p.age|escape}</td>
			<td style="text-align:center;">{$p.sex|escape}</td>
			<td style="text-align:center;">{$p.cate|escape}</td>
            <td style="text-align:center;">{$p.add_time|date:Y-m-d H:i}</td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">没有相关数据</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $pets}-->
    <div id="dataFuncs">
        <div class="pageLinks">
            {include file=page.bottom.html}
        </div>
        <div id="batchAction" class="left paddingT15">
            &nbsp;&nbsp;
            <input class="formbtn batchButton" type="button" value="删除" name="id" uri="index.php?app=pet&act=Auditing" presubmit="confirm('确认删除宠物');" />
            &nbsp;&nbsp;
            <!--<input class="formbtn batchButton" type="button" value="lang.update_order" name="id" presubmit="updateOrder(this);" />-->
        </div>
        <div class="clear:both;"></div>
    </div>
    <div class="clear"></div>
    <!--{/if}-->
</div>
{include file="footer.html"}
